package com.bao.service;

import com.bao.bean.User;
import com.bao.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by baojunhu on 2017/3/28.
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> getList(){
        return userMapper.getList();
    }

    public User getUserByID(Integer id){
        return userMapper.getUserByID(id);
    }
}
